﻿// Copyright (c) 2009, 3G.cn
// $Author: Moweiqiang $
// $Date: 09-03-04 20:04 $
// $Revision: 2 $
// $NoKeywords: $
namespace Jiubang.Wap {
	using Doc;

	/// <summary>
	/// Page类接口
	/// </summary>
	public interface IPage {
		/// <summary>
		/// 当前页面的文档版本
		/// </summary>
		IDocument Document { get; set; }

		/// <summary>
		/// 输出页头内容
		/// </summary>
		/// <param name="title">页标题，带wid或为空时输出默认标题</param>
		string GetHeader(string title);
        /// <summary>
        /// 输出页头内容
        /// </summary>
        /// <param name="title">页标题，带wid或为空时输出默认标题</param>
	    /// <param name="args">css，javascript等字符串</param>
	    string GetHeader(string title, params string[] args);

		/// <summary>
		/// 输出标准页脚
		/// </summary>
		/// <param name="withReturnLink">是否带返回链接</param>
		string GetFooter(bool withReturnLink);

		/// <summary>
		/// 输出自动刷新页的页头
		/// </summary>
		/// <param name="url">超时后转到的URL，自动添加randnum参数</param>
		/// <param name="title">页标题，为空时使用默认标题</param>
		/// <param name="seconds">超时秒数</param>
		string GetJumperHeader(string url, int seconds, string title);

        /// <summary>
        /// 输出自动刷新页的页头
        /// </summary>
        /// <param name="url">超时后转到的URL，自动添加randnum参数</param>
        /// <param name="title">页标题，为空时使用默认标题</param>
        /// <param name="seconds">超时秒数</param>
        /// <param name="args">css，javascript等字符串</param>
	    string GetJumperHeader(string url, int seconds, string title, params string[] args);

		/// <summary>
		/// 当前请求的开放频道ID
		/// </summary>
		int Wid { get; }
	}
}